<template>
  <div>
    <product-detail :is-edit="isEdit" />
  </div>
</template>

<script>
import ProductDetail from './components/ProductDetail'

export default {
  name: 'AddProduct',
  components: { ProductDetail },
  data() {
    return {
      isEdit: false
    }
  },
  created() {
    if (this.$route.params.id !== 'add') {
      this.isEdit = true
    }
  }
}
</script>

<style scoped>

</style>
